
  @extends('layout.layout') 
  @section('content') 
  <h1 class="page-title">用户管理 <small>sample data tables</small></h1> 
  <div class="row-fluid"> 
   <div class="span12"> 
    <div class="widget"> 
    <div class="widget"> 
     <div class="widget-header"> 
      <h4>用户列表</h4> 
     </div> 
     <form action="{{url('/admin/user/index')}}" method="get">
     <div class="widget-content"> 
      <div id="data-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
       <div class="row-fluid">
        <div class="span6">
         <div class="dataTables_length">
          <label><select size="1" name="num" aria-controls="data-table" style="background: rgba(0,0,0,0.5)">
          <option  value="10" @if(!empty($request['num']) && $request['num'] == 10)
                            selected
                            @endif>10</option>
          <option value="25" @if(!empty($request['num']) && $request['num'] == 25)
                            selected
                            @endif>25</option>
          <option value="50" @if(!empty($request['num']) && $request['num'] == 50)
                            selected
                            @endif>50</option>
          <option value="100" @if(!empty($request['num']) && $request['num'] == 100)
                            selected
                            @endif>100</option>
          </select>每页显示条数</label>
         </div>
        </div>
         <div class="dataTables_filter">
                             <label>游戏账号:<input name="seek" aria-controls="data-table" type="text" value="@if(!empty($request['seek'])){{$request['seek']}}@endif">
                             <button class="btn btn-primary"  style="height:30px">查询</button>
                             </label>
                            </div>
       </div>
       </form>
       <table style="font-size:12px;"class="table table-striped table-bordered dataTable" aria-describedby="data-table_info"> 
        <thead> 
         <tr>
          <th style="text-align:center" class="sorting_asc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 199px;">id</th>
          <th style="text-align:center" class="sorting_asc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 199px;">游戏账号</th>
          <th style="text-align:center"  class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 293px;">手机号</th>
          <th style="text-align:center" class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 269px;">游戏名称</th>
          <th style="text-align:center" class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 168px;">头像</th>
          <th style="text-align:center" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 123px;">操作</th>
         </tr> 
        </thead> 
        <tbody role="alert" aria-live="polite" aria-relevant="all">
         @foreach($users as $k=>$v)
         <tr class="odd gradeX"> 
          <td style="text-align:center;line-height:50px;">{{$v->id}}</td> 
          <td style="text-align:center;line-height:50px;">{{$v->email}}</td> 
          <td style="text-align:center;line-height:50px;">{{$v->phone}}</td> 
          <td style="text-align:center;line-height:50px;">{{$v->username}}</td> 

          <td style="text-align:center;line-height:50px;"><img width="60px" height="60px" src="/public/admin/userimage/s_{{$v->pic}}" alt=""></td> 
          <td style="text-align:center;line-height:50px;">
          <span class="icon-remove label label-important">
          <a  href="{{url('/admin/user/delete',['id'=>$v->id])}}">删除</a>
          </span>
          &nbsp;&nbsp;
          <span class="icon-edit label label-success">
          <a  href="{{url('/admin/user/edit',['id'=>$v->id])}}">修改</a>
          </span>
          </td> 
         </tr>
         @endforeach
        

        </tbody>
       </table>
       <div class="row-fluid">
        <div class="span6">
         <div class="dataTables_info" id="data-table_info">
          Showing 1 to 10 of 57 entries
         </div>
        </div>
        <div class="span6">
         <div class="dataTables_paginate paging_bootstrap pagination">
       {!! $users->appends($request)->render() !!}
         </div>
        </div>
       </div>
      </div> 
      <div class="clearfix"></div> 
     </div> 
    </div> 
   </div>
   <!-- end span12 --> 
  </div> @endsection
 </body>
</html>